package com.hqyj.dao.dao;

import com.hqyj.pojo.Yan_liuyan;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface Yan_liuyandao {
    @Insert("insert into liuyan (userName, liuyanContent, date, photo) values(#{userName},#{liuyanContent},#{date},#{photo})")
    int liuyan(Yan_liuyan yan_liuyan);
    // 返回后台-动态
    @Select("select * from liuyan")
    List<Yan_liuyan> getDongtai();
}
